<% title "Student Portal - Trang chủ" %>
<% content_for :top_section do %>
    <div class="row-fluid" style="margin-bottom: 15px;" xmlns="http://www.w3.org/1999/html">
      <div class="span12">
        <h2 class="uppercase"><%= yield :title %></h2>
        <hr>
      </div>
    </div>
 <% end %>
<% content_for :sidebar do %>
    <% if session[:student].nil? %>
            <%= render "frontend/portal/partials/login" %>
    <% else %>
            <%= render "frontend/portal/partials/usermenu" %>
    <% end %>
<% end %>

<h3 class="uppercase">Hoạt động mới nhất gần đây</h3>
<% @activities.each do |a| %>
  <div class="row-fluid">
    <div class="span12">
      <h5 class="uppercase"><%= a[:title] %></h5>
      <p></p><em><%= a.student.login %> - Tạo lúc: <%= a.created_at %></em></p>
      <p style="word-break: break-word"><%= raw a.activity_data %></p>
      <hr />
    </div>
  </div>
<% end %>
<%= paginate @activities %>
